package com.ciaojian.worker.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.TagMapper;
import com.ciaojian.core.model.Tag;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * @author Atlakyn
 */
@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag> {


    public void getTagByTagNames(Set tagNames) {
        LambdaQueryWrapper<Tag> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.in(Tag::getTagName, tagNames);
        List<Tag> list = this.list(lambdaQueryWrapper);

    }

}
